﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Syndication;
using System.ServiceModel.Web;
using System.Text;

namespace Scrummer.Feed
{
	// NOTE: If you change the interface name "IScrummerFeed" here, you must also update the reference to "IScrummerFeed" in App.config.
	[ServiceContract]
	[ServiceKnownType(typeof(Atom10FeedFormatter))]
	[ServiceKnownType(typeof(Rss20FeedFormatter))]
	public interface IScrummerFeed
	{

		[OperationContract]
		[WebGet(UriTemplate = "View", BodyStyle = WebMessageBodyStyle.Bare)]
		SyndicationFeedFormatter ViewFeed();

		[OperationContract]
		[WebInvoke(UriTemplate = "Add?url={encodedUrl}", BodyStyle = WebMessageBodyStyle.Bare)]
		bool AddFeed(string encodedUrl);

		// TODO: Add your service operations here
	}
}
